package com.fezz.boot.rpc.service;

import com.fezz.boot.rpc.api.OrderService;
import com.fezz.boot.rpc.model.OrderVO;
import lombok.extern.log4j.Log4j2;

import java.util.UUID;

/**
 * 订单服务实现类
 *
 * @author muyun
 * @version 1.0.0
 * @since 2020/7/6
 */
@Log4j2
public class OrderServiceImpl implements OrderService {

    @Override
    public String getOrderById(Long orderId) {
        OrderVO orderVO = new OrderVO();
        orderVO.setOrderId(orderId);
        orderVO.setOrderNo(UUID.randomUUID().toString());
        log.info("orderVO : {}", orderVO);
        return orderVO.toString();
    }
}
